package com.sss.hloster06;

import java.util.Scanner;

public class JavaExercise32 {

	public static void main(String[] args) {
		test32();
	}

	/**
	 ** 取一个整数a从右端开始的 4～7位。
	 */
	private static void test32() {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个整数（长度大于7）：");
		String a = sc.next();
		int len = a.length();
		int arr[] = new int[len];
		// 将字符串转换成数字类型
		long num = Long.parseLong(a);
		for (int i = 0; i < len; ++i) {
			arr[i] = (int) (num % 10);
			num = num / 10;
		}
		for (int j = 3; j < 7; ++j) {
			System.out.print(arr[j] + "  ");
		}
	}
}
